package com.wkhyapp.lm.weigit;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.wkhyapp.lm.R;

/**
 * Created by fang on 2021/11/4.
 */

public class EmptyView {

    private static View view;
    private static ImageView imageView;
    private static TextView msgTv;
    public static View getView(Context context, int layout, int img, String msg){
        view = View.inflate(context,layout, null);
        msgTv = (TextView)view.findViewById(R.id.empty_tv);
        imageView = (ImageView)view.findViewById(R.id.empty_iv);
        msgTv.setText(msg+"");
        return  view;
    }
}
